﻿using System;
using System.Data;
using System.Collections.Generic;

using Com.Framework.Data;
using Com.Library.DB;

namespace Com.Library.DB.Board
{
	internal class ArticleCreate : DBDataReader<DataEntity, DataEntity>
	{
		public ArticleCreate()
			: base(new ConnectionString(), "TSP_Article_Create")
		{
		}

		protected override void ParameterInitialize()
		{
			AddParameter("n1BoardSN", SqlDbType.TinyInt, 1, SqlDataInOut.Input);
			AddParameter("n4CategoryNo", SqlDbType.Int, 4, SqlDataInOut.Input);
			AddParameter("strTitle", SqlDbType.NVarChar, 400, SqlDataInOut.Input);
			AddParameter("strContent", SqlDbType.NVarChar, -1, SqlDataInOut.Input);
			AddParameter("strJSONData", SqlDbType.NVarChar, -1, SqlDataInOut.Input);
			AddParameter("strFileUrl", SqlDbType.VarChar, 1000, SqlDataInOut.Input);
			AddParameter("n4ManagerSNWriter", SqlDbType.Int, 4, SqlDataInOut.Input);
			AddParameter("strUserID", SqlDbType.VarChar, 50, SqlDataInOut.Input);
			AddParameter("n4ReadCount", SqlDbType.Int, 4, SqlDataInOut.Input);
			AddParameter("n4ArticleSN", SqlDbType.Int, 4, SqlDataInOut.Output);
		}
	}
}